package cn.llssit.project.wechatapi.mapper;

import cn.llssit.project.wechatapi.domain.Customer;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: Lesan
 * @Date: 2020-06-27
 */
public interface CustomerMapper {
    @Insert("INSERT INTO customer (nickName,city,gender,avatarUrl,phone) VALUES (#{nickName},#{city},#{gender},#{avatarUrl},#{phone})")
    int initInsert(String nickName,String city,Integer gender,String avatarUrl,String phone );

    @Select("select * from customer where phone=#{phone}")
    Customer existsOne(String phone);
}
